﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Hybrid;

namespace Hybrid
{
    class PowerUpTypes
    {
        private List<int> privateSpeedBoost = new List<int>();
        private List<int> privateWeaponsUpgrade = new List<int>();
        private List<int> privateScoreMultiplier = new List<int>();
        private List<int> privateDamageResistant = new List<int>();
        private List<int> privateDamageRepair = new List<int>();
        private List<string> privatePowerUpTitle = new List<string>();
        private Sprite privateSpriteObject;
        private List<List<int>> Collection = new List<List<int>>();
        private Random GlobalRandom = new Random();

        public PowerUpTypes()
        {
            privateSpeedBoost.AddRange(new int[] { 5, 0, 0, 0, 0 });
            privateWeaponsUpgrade.AddRange(new int[] { 0, 5, 0, 0, 0 });
            privateScoreMultiplier.AddRange(new int[] { 0, 0, 2, 0, 0 });
            privateDamageResistant.AddRange(new int[] { 0, 0, 0, 3, 0 });
            privateDamageRepair.AddRange(new int[] { 0, 0, 0, 0, 30 });
            privatePowerUpTitle.AddRange(new string[] { "Speed Boost", "Weapons Upgrade", "Score Multiplier", "Damage Resistant", "Damage Repair" }); ;
            for (int i = 0; i < 4; i++)
            {
                Collection.Add(new List<int>() { privateSpeedBoost[i], privateWeaponsUpgrade[i], privateScoreMultiplier[i], privateDamageResistant[i], privateDamageRepair[i]});
            }
        }

        public PowerUp NewRandomPowerUp(int ran, int ranX, List<Image> SpriteImage)
        {
            return new PowerUp(Collection[ran], privatePowerUpTitle[ran], ranX, SpriteImage);
        }

    }
}
